import random
import turtle
#函数的使用

def triange():
    r = random.randint(0, 255)
    g = random.randint(0, 255)
    b = random.randint(0, 255)
    turtle.fillcolor((r, g, b))
    turtle.begin_fill()
    turtle.forward(100)
    turtle.left(90)
    turtle.forward(100)
    turtle.goto(0,0)
    turtle.right(90)
    turtle.end_fill()

def windmill():
    for i in range(8):
        triange()
        turtle.left(45)

turtle.colormode(255)
windmill()
turtle.done()